<?php
/**
 * Created by PhpStorm.
 * User: stupboy
 * Date: 2018/4/14
 * Time: 21:55
 * Mail:87658989@qq.com
 */

namespace app\cron\controller;
use app\api\logic as apilogic;
use app\cron\logic;

class Dispatch
{
    public function index(){
        // 获取待派车订单
        $orders       = (new \app\cron\model\Order())->getOrder();
        //$nowTime     = date('Y-m-d H:i:s',time()-60*60);
        //$offlineTime = 120;
        (new logic\Disptach())->dispatchOrder($orders);
    }
}